package unit4_1015.test2;

public class Cat extends Pet {
	
	//猫类Cat独有懒度lazy属性。
	private int lazy;

	public int getLazy() {
		return lazy;
	}
	public void setLazy(int lazy) {
		if(lazy<1 || lazy>10) {
			lazy=5;
		}
		this.lazy = lazy;
	}
	
	@Override
	public void toHospital() {
		System.out.println("宠物猫去医院");
	}
	
	
	
}
